<script setup lang="ts">
import { RouterLink, RouterView } from 'vue-router';
</script>

<template>
  <div class="app">
    <h1>彩票数据分析系统</h1>
    <div class="nav-tabs">
      <RouterLink to="/p5" class="nav-tab" active-class="active">排列五</RouterLink>
      <RouterLink to="/dlt" class="nav-tab" active-class="active">大乐透</RouterLink>
    </div>
    <RouterView />
  </div>
</template>

<style scoped>
.app {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  font-family: 'Arial', sans-serif;
  padding-top: 40px;
  height: 100%;
}

.nav-tabs {
  display: flex;
  margin-bottom: 20px;
  border-bottom: 1px solid #e8e8e8;
}

.nav-tab {
  padding: 10px 20px;
  margin-right: 10px;
  text-decoration: none;
  color: #333;
  border-bottom: 2px solid transparent;
  font-weight: 500;
  transition: all 0.3s;
}

.nav-tab.active {
  color: #1890ff;
  border-bottom-color: #1890ff;
}

.nav-tab:hover {
  color: #1890ff;
}

h1 {
  text-align: center;
  color: #333;
  margin-bottom: 30px;
  position: relative;
  z-index: 10;
}
</style>
